package com.thoughtworks;

import java.util.Scanner;


public class InputProcess extends Process {
    Scanner input;
InputProcess()
{
     input = new Scanner(System.in);

}

    public int getUserOption()
    {
        return input.nextInt();

    }
    public String getUserId() throws NotAValidUser {
        System.out.println("Enter user id");
        userId=input.next();
        return userId;

    }
    public String getUserPassword() throws NotAValidUser {
        System.out.println("enter your password");
        password=input.next();
        return password;

    }




    public String getEntityName(String entity, String operation)
    {
        input.nextLine();

        System.out.println("enter the "+entity+ "Name to " + operation);
        entityName = input.nextLine();
       return entityName;
    }





}


